package com.sun.androidexerciseproject.function.model;

import java.util.Comparator;

/**
 * Created by Administrator on 2017/6/24.
 */

public class PayCompartorModel implements Comparator<PayCompartorModel> {
    int mType;
    String mTypeName;

    public PayCompartorModel(int type, String typeName) {
        mType = type;
        mTypeName = typeName;
    }

    @Override
    public int compare(PayCompartorModel o1, PayCompartorModel o2) {
        return o1.mType - o2.mType;
    }

    @Override
    public String toString() {
        return "{mType = " + mType + " mTypeName = " + mTypeName + "}";
    }
}
